package entity

import "time"

type SettleEntity struct {
	Id              int64          `gorm:"primaryKey;column:id"`
	CreatedAt       time.Time      `gorm:"column:created_at"`
	UpdatedAt       time.Time      `gorm:"column:updated_at"`
	Status          int            `gorm:"column:status"`
	SettleTime      time.Time      `gorm:"column:settle_time"`
	RoomId          int64          `gorm:"column:room_id"`
	RoomLevel       int            `gorm:"column:room_level"`
	RoomPeriods     int64          `gorm:"column:room_periods"`
	RoomArea        int            `gorm:"column:room_area"`
	KillerAreas     string         `gorm:"column:killer_areas"`
	UserId          int64          `gorm:"column:user_id"`
	IsRobot         bool           `gorm:"column:is_robot"`
	NickName        string         `gorm:"column:nick_name"`
	Level           int64          `gorm:"column:level"`
	BetCoins        int64          `gorm:"column:bet_coins"`
	ProfitLossCoins int64          `gorm:"column:profit_loss_coins"`
	PumpWaterCoins  int64          `gorm:"column:pump_water_coins"`
	GameResult      int            `gorm:"column:game_result"`
	GameType        int            `gorm:"column:game_type"`
	Details         []SettleEntity `gorm:"-"`
}

func (s *SettleEntity) TableName() string {
	return "t_game_settle"
}
